Release 10.1A: OpenEdge Development:
ProDataSets
Passing a ProDataSet as a parameter
You can pass a static ProDataSet as a static object using the
PARAMETER DATASETform, which is similar to thePARAMETER TABLEform for a temp-table. Also, you can pass either a static or dynamic ProDataSet through its handle using thePARAMETER DATASET-HANDLE, which is similar to thePARAMETER TABLE-HANDLEform for temp-tables.The
DATASETparameter form passes a ProDataSet as a static object to another procedure in the same session or another session. This is the syntax for a parameter definition of this form:
This is the syntax for a parameter passed in a
RUNstatement:
The
DATASET-HANDLEform passes the ProDataSet as a dynamic object through a handle variable. This is the syntax for a parameter definition of this form:
This is the syntax for a parameter passed in a
RUNstatement:
You can pass a ProDataSet statically from one procedure using the
DATASETparameter form, and receive it in another procedure in the same session or another session as a dynamic object using theDATASET-HANDLEparameter form, and vice versa.For example, this technique allows you to take a statically defined ProDataSet on the server and pass it to a general-purpose client procedure that:
A static definition is most useful on the server because it allows static business logic to operate directly on the ProDataSet and its temp-tables.
A ProDataSet can also be passed just as a handle using the
HANDLEparameter type. As with other objects, a ProDataSet can be passed by a simple reference to its handle only within the same session, and can be accessed only dynamically, that is, through the handle, in the receiving procedure.
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |